package strategy

import "sync"

var registerMap map[string]Strategy
var mutex sync.Mutex

func init() {
	registerMap = make(map[string]Strategy)
}

func RegisterStrategy(name string, strategy Strategy) {
	mutex.Lock()
	defer mutex.Unlock()
	registerMap[name] = strategy
}

type Strategy interface {
	Issue(params interface{})
}
